package com.demo.jpa.service;

import com.demo.jpa.dao.entity.PrivilegeEntity;
import com.demo.jpa.dao.repository.PrivilegeRepository;
import io.swagger.annotations.Authorization;
import lombok.extern.log4j.Log4j2;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.UUID;

/**
 * @Author: LiaoYouLe
 * @Description:
 * @Date: Created in 8:39 2018/8/1
 * @Modified By:
 */
@Log4j2
public class ListnerTry extends TestCase {
    @Autowired
    private PrivilegeRepository privilegeRepository;
    @Test
    public void customDefind(){
        PrivilegeEntity entity = new PrivilegeEntity();
        entity.setPdescription("测试数据"+ UUID.randomUUID().toString());
        privilegeRepository.save(entity);
    }
}
